package com.neusoft.actor.client;

import com.neusoft.actor.po.CareItem;
import com.neusoft.actor.po.ClientCareItem;
import com.neusoft.actor.po.ResponseBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("care-service")
public interface ClientCareItemClient {
    @GetMapping("/ClientCareItemController/getClientCareItem")
//    查询特定护理项目信息，给客户id和项目id
    ResponseBean<ClientCareItem> getClientCareItem(@RequestParam Integer clientId, @RequestParam Integer itemId);

    @PutMapping("/ClientCareItemController/updateById")
    ResponseBean<Integer> updateById(ClientCareItem clientCareItem);

    @GetMapping("/CareItemController/getCareItemsByCondition")
//    多条件查询护理项目
    ResponseBean<List<CareItem>> getCareItemsByCondition(@RequestParam(required = false) String status, @RequestParam(required = false) String itemName);
}

